package com.star.modules.sys.api;

import com.star.modules.sys.base.BizDataResult;
import com.star.modules.sys.service.BottomService;
import com.star.modules.sys.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 底部接口
 */
@RestController
@RequestMapping(value = "${frontPath}/sys/bottom")
public class BottomController {

    @Autowired
    private BottomService bottomService;
    /**
     * 首页展示信息
     * @return
     */
    @RequestMapping(value = "info")
    public BizDataResult getIndexInfo(HttpServletRequest request, HttpServletResponse response){
        return bottomService.getInfo();
    }
}
